package cn.jiyun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @TableName sbgl
 */
@TableName(value ="sbgl")
@Data
public class Sbgl implements Serializable {
    private Integer id;

    private String sbid;

    private String createds;

    private String weiyi;

    private Integer sid;

    private String bumen;

    private String yxq;

    private Date ctime;

    private String pho;

    private Integer status;

    private Integer xlstatus;

    private Integer xlmin;

    private Integer xlmax;

    private String xlzq;

    private Integer xystatus;

    private Integer xymin;

    private Integer xymax;

    private String xyzq;

    private Integer bsstatus;

    private Integer bsmin;

    private Integer bsmax;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sbgl other = (Sbgl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSbid() == null ? other.getSbid() == null : this.getSbid().equals(other.getSbid()))
            && (this.getCreateds() == null ? other.getCreateds() == null : this.getCreateds().equals(other.getCreateds()))
            && (this.getWeiyi() == null ? other.getWeiyi() == null : this.getWeiyi().equals(other.getWeiyi()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getBumen() == null ? other.getBumen() == null : this.getBumen().equals(other.getBumen()))
            && (this.getYxq() == null ? other.getYxq() == null : this.getYxq().equals(other.getYxq()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getPho() == null ? other.getPho() == null : this.getPho().equals(other.getPho()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getXlstatus() == null ? other.getXlstatus() == null : this.getXlstatus().equals(other.getXlstatus()))
            && (this.getXlmin() == null ? other.getXlmin() == null : this.getXlmin().equals(other.getXlmin()))
            && (this.getXlmax() == null ? other.getXlmax() == null : this.getXlmax().equals(other.getXlmax()))
            && (this.getXlzq() == null ? other.getXlzq() == null : this.getXlzq().equals(other.getXlzq()))
            && (this.getXystatus() == null ? other.getXystatus() == null : this.getXystatus().equals(other.getXystatus()))
            && (this.getXymin() == null ? other.getXymin() == null : this.getXymin().equals(other.getXymin()))
            && (this.getXymax() == null ? other.getXymax() == null : this.getXymax().equals(other.getXymax()))
            && (this.getXyzq() == null ? other.getXyzq() == null : this.getXyzq().equals(other.getXyzq()))
            && (this.getBsstatus() == null ? other.getBsstatus() == null : this.getBsstatus().equals(other.getBsstatus()))
            && (this.getBsmin() == null ? other.getBsmin() == null : this.getBsmin().equals(other.getBsmin()))
            && (this.getBsmax() == null ? other.getBsmax() == null : this.getBsmax().equals(other.getBsmax()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSbid() == null) ? 0 : getSbid().hashCode());
        result = prime * result + ((getCreateds() == null) ? 0 : getCreateds().hashCode());
        result = prime * result + ((getWeiyi() == null) ? 0 : getWeiyi().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getBumen() == null) ? 0 : getBumen().hashCode());
        result = prime * result + ((getYxq() == null) ? 0 : getYxq().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getPho() == null) ? 0 : getPho().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getXlstatus() == null) ? 0 : getXlstatus().hashCode());
        result = prime * result + ((getXlmin() == null) ? 0 : getXlmin().hashCode());
        result = prime * result + ((getXlmax() == null) ? 0 : getXlmax().hashCode());
        result = prime * result + ((getXlzq() == null) ? 0 : getXlzq().hashCode());
        result = prime * result + ((getXystatus() == null) ? 0 : getXystatus().hashCode());
        result = prime * result + ((getXymin() == null) ? 0 : getXymin().hashCode());
        result = prime * result + ((getXymax() == null) ? 0 : getXymax().hashCode());
        result = prime * result + ((getXyzq() == null) ? 0 : getXyzq().hashCode());
        result = prime * result + ((getBsstatus() == null) ? 0 : getBsstatus().hashCode());
        result = prime * result + ((getBsmin() == null) ? 0 : getBsmin().hashCode());
        result = prime * result + ((getBsmax() == null) ? 0 : getBsmax().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sbid=").append(sbid);
        sb.append(", createds=").append(createds);
        sb.append(", weiyi=").append(weiyi);
        sb.append(", sid=").append(sid);
        sb.append(", bumen=").append(bumen);
        sb.append(", yxq=").append(yxq);
        sb.append(", ctime=").append(ctime);
        sb.append(", pho=").append(pho);
        sb.append(", status=").append(status);
        sb.append(", xlstatus=").append(xlstatus);
        sb.append(", xlmin=").append(xlmin);
        sb.append(", xlmax=").append(xlmax);
        sb.append(", xlzq=").append(xlzq);
        sb.append(", xystatus=").append(xystatus);
        sb.append(", xymin=").append(xymin);
        sb.append(", xymax=").append(xymax);
        sb.append(", xyzq=").append(xyzq);
        sb.append(", bsstatus=").append(bsstatus);
        sb.append(", bsmin=").append(bsmin);
        sb.append(", bsmax=").append(bsmax);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}